package org.jeecg.modules.demo.equitybalance.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.equitybalance.entity.EquityBalance;
import org.jeecg.modules.demo.equitybalance.mapper.EquityBalanceMapper;
import org.jeecg.modules.demo.equitybalance.service.IEquityBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 股本余额
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class EquityBalanceServiceImpl extends ServiceImpl<EquityBalanceMapper, EquityBalance> implements IEquityBalanceService {
    @Autowired
    private EquityBalanceMapper equityBalanceMapper;

    // 根据股东Id查询
    @Override
    public IPage<EquityBalance> getByStockId(Page<EquityBalance> page, String stockId) {
        return equityBalanceMapper.getByStockId(page, stockId);
    }
}
